package com.stef.saas.ssm.feign.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id",example = "1")
    private Long id;

    /**
     * 登陆账号
     */
    @ApiModelProperty(value = "登陆账号名",required = true,example = "zhangsan")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码",required = true,example = "123456")
    private String password;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "用户手机号",example = "13030303030")
    private String phone;

    /**
     * 图像
     */
    @ApiModelProperty(value = "用户图像",example = "https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png")
    private String avatar;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "用户昵称",example = "隔壁老王")
    private String nickname;
}
